import { parseCronExpression } from 'cron-schedule'

import { TimerBasedCronScheduler as scheduler } from 'cron-schedule/schedulers/timer-based.js'

const timer = () => console.log(new Date().toLocaleString(), 'cron running')

const five = parseCronExpression('*/5 * * * * *')

export { scheduler, timer, five }

